package com.yunji.cabinet.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.Max;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author : peter-zhu
 * @date : 2025/3/13 10:24
 * @description : TODO
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_container_type")
public class ContainerTypeDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类型code")
    @Excel(name = "类型code", width = 15)
    @TableId
    private String typeCode;

    @ApiModelProperty("类型名称")
    private String typeName;

    @ApiModelProperty("类型高度")
    private BigDecimal typeHeight;

    @ApiModelProperty("格子数")
    @Excel(name = "格子数", width = 15)
    @Max(message = "格子数不能超过{value}", value = 99)
    private Integer nums;
}

